/*
 * @Description: 
 * @Author: zoe
 * @Date: 2024-09-09 16:31:38
 * @LastEditors: rendc
 * @LastEditTime: 2024-09-09 18:16:45
 */
public class Account{
    private String id;
    private double balance;
    public Account(){
        System.out.println("调用了Account无参构造器")
    }
    public Account(String id,double balance){
        this.id = id;
        this.balance = balance;
        System.out.println("调用了Account两参构造器");
    }
    //构造方法-有参-三个
    public Account(String id,String type,double balance){
        this(id,balance);//第一行有效代码
        this.type = type;
         System.out.println("调用了Account三参构造器");

    }
    public void setId(String id){
        this.id = id;//成员变量
    }
    public String getId(){
        return id;
    }
    public void setBalance(double balance){
        this.balance = balance;
    }
    public double getBalance(){
        return balance;
    }
}
